#ifndef __DICT_H__
#define __DICT_H__

enum
{
	NORMAL_DICT,
	UKEY_DICT
}dict_types;

struct dict_set
{
	const char year_dict[15];
	const char yday_dict[20];
	const char dict[32];
	const char dict_type;
};

struct dict_set normal;

/*
 * char_in_dict, check if a character is in dict
 */
int char_in_dict(const char* dict, int dict_length, char character);

/*
 * index_in_dict, get index number of character in dict
 */
int index_in_dict(const char* dict, int dict_length, char character);

/*
 * string_count_char_in_dict, get number of character which is both in str and dict
 */
int string_count_char_in_dict(const char* str, const char* dict, int dict_length);

/*
 * _hid_to_code, get code from hid
 */
void _hid_to_code(const char* hid, char code[8]);


#endif
